package com.demo.utils;

public class SystemConstants {
    // url前缀
    public static final String DOMAIN_PREV = "http://192.168.10.104:8082/";
    // 项目绝对路径
    public static final String PROJECT_LOCATION = "D:/code/JavaCode/backend-learn/fake-zhihu-backend/";

    public static final String USER_NICK_NAME_PREFIX = "user_";
    public static final int MAX_PAGE_SIZE = 10;

    public static final String UPLOAD_DIR = "upload/";
    public static final String AVATAR_DIR = "avatar/";
    public static final String IMAGE_DIR = "image/";

    // 默认头像路径
    public static final String DEFAULT_AVATAR_URL = DOMAIN_PREV + UPLOAD_DIR + AVATAR_DIR + "default.jfif";

    // 上传图片目录的绝对路径
    public static final String UPLOAD_ABSOLUTE_PATH = PROJECT_LOCATION + UPLOAD_DIR;

    public static final Integer MaxAge = 600000;
}
